/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-14
 * Time: 14:35
 */
import java.util.Scanner;
public class test3 {
    public static void main(String[] args) {
        int[] arr = {12,23,343,3423,45345,453453,3453,345,3,6};

        System.out.println(live(arr));
    }
    public static boolean live(int[] arr){

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要查询的数字:");
        int num = sc.nextInt();
        for(int i = 0;i < arr.length;i++){
            if(arr[i] == num){
                return true;
            }
        }
        System.out.println("数字不存在");
        return false;
    }
}
